package com.bwie.es.controller;

import com.bwie.common.domain.Shop;
import com.bwie.common.domain.request.ShopRequest;
import com.bwie.common.result.PageResult;
import com.bwie.common.result.Result;
import com.bwie.es.service.EsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/Es")
public class EsController {
    @Autowired
    private EsService esService;

    @PostMapping("/EsList")
    public Result<PageResult<Shop>> EsList(@RequestBody ShopRequest shopRequest){
        Result<PageResult<Shop>> result = esService.EsList(shopRequest);
        return result;
    }

}
